home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / WinMod.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  9.2 KB  |  284 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: WinMod.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODWindowModule_h
  18. #define SOM_ODWindowModule_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default.
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODWindowModule
  34. #define ODWindowModule SOMObject
  35. #endif
  36. #include <RefCtObj.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef ODFrame
  42.     #define ODFrame SOMObject
  43. #endif /* ODFrame */
  44. #ifndef ODFacet
  45.     #define ODFacet SOMObject
  46. #endif /* ODFacet */
  47. #ifndef SOMClass
  48.     #define SOMClass SOMObject
  49. #endif /* SOMClass */
  50. #ifndef SOMObject
  51.     #define SOMObject SOMObject
  52. #endif /* SOMObject */
  53. #ifndef ODObject
  54.     #define ODObject SOMObject
  55. #endif /* ODObject */
  56. #ifndef ODExtension
  57.     #define ODExtension SOMObject
  58. #endif /* ODExtension */
  59. #ifndef ODRefCntObject
  60.     #define ODRefCntObject SOMObject
  61. #endif /* ODRefCntObject */
  62. #ifndef ODWindowModule
  63.     #define ODWindowModule SOMObject
  64. #endif /* ODWindowModule */
  65.  
  66. /*
  67.  * End of user-defined types.
  68.  */
  69.  
  70. #define ODWindowModule_MajorVersion 1
  71. #define ODWindowModule_MinorVersion 0
  72.  
  73. /*
  74.  * External name shortening if required
  75.  */
  76. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  77. #define ODWindowModuleClassData d
  78. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  79. /*--------------Migration------------*/
  80.  
  81. #ifdef OLDIBMSOMAPISUPPORT
  82. #define ODWindowModule_classObj somNewClassReference(ODWindowModule)
  83. #define _ODWindowModule ODWindowModule_classObj
  84. #define ODWindowModuleCClassData ODWindowModuleClassData
  85. #define ODWindowModuleNewClass(major,minor) somNewVersionedClassReference(ODWindowModule,major,minor)
  86. #endif
  87.  
  88. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  89. #define ODWindowModuleMetaClass SOMClass
  90.  
  91. #if PRAGMA_ALIGN_SUPPORTED
  92. #  pragma options align=power
  93. #endif
  94.  
  95. /*
  96.  * Declare the class data structure
  97.  */
  98. SOMEXTERN struct ODWindowModuleClassDataStructure {
  99. #ifdef OLDIBMSOMAPISUPPORT
  100.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  101. #else
  102.     long zero;
  103. #endif
  104.     somStaticClassInfo *sci;
  105.     somDToken        instanceDataToken;
  106.     long reserved [3];
  107.     somMToken InitWindowModule;
  108.     somMToken ShowWindow;
  109.     somMToken HideWindow;
  110.     somMToken SelectWindow;
  111.     somMToken DeactivateFrontWindows;
  112.     somMToken ActivateFrontWindows;
  113. } SOMDLINK ODWindowModuleClassData;
  114.  
  115. #if PRAGMA_ALIGN_SUPPORTED
  116. #  pragma options align=reset
  117. #endif
  118.  
  119. #if !defined(ODWindowModule_Class_Source) && !defined(SOM_Module_winmod_Source)
  120. #if PRAGMA_IMPORT_SUPPORTED
  121. #pragma import list ODWindowModuleClassData
  122. #endif
  123. #endif
  124.  
  125.  
  126. /*
  127.  * New macro for ODWindowModule
  128.  */
  129. #define ODWindowModuleNew() somNewObject(ODWindowModule)
  130.  
  131. /*
  132.  * Override method: somInit
  133.  */
  134. #define ODWindowModule_somInit(somSelf) \
  135.     SOMObject_somInit(somSelf)
  136.  
  137. /*
  138.  * New Method: InitWindowModule
  139.  */
  140. typedef void   (SOMLINK *somTD_ODWindowModule_InitWindowModule)(ODWindowModule *somSelf, Environment *ev);
  141. #define somMD_ODWindowModule_InitWindowModule "::ODWindowModule::InitWindowModule"
  142. #define ODWindowModule_InitWindowModule(somSelf,ev) \
  143.     (SOM_Resolve(somSelf, ODWindowModule, InitWindowModule) \
  144.     (somSelf,ev))
  145. #ifndef SOMGD_InitWindowModule
  146.     #if (defined(_InitWindowModule) || defined(__InitWindowModule))
  147.         #undef _InitWindowModule
  148.         #undef __InitWindowModule
  149.         #define SOMGD_InitWindowModule 1
  150.     #else
  151.         #define _InitWindowModule ODWindowModule_InitWindowModule
  152.     #endif /* _InitWindowModule */
  153. #endif /* SOMGD_InitWindowModule */
  154.  
  155. /*
  156.  * New Method: ShowWindow
  157.  */
  158. typedef void   (SOMLINK *somTD_ODWindowModule_ShowWindow)(ODWindowModule *somSelf, Environment *ev,
  159.         ODPlatformWindow window,
  160.         ODWindowLayer layer);
  161. #define somMD_ODWindowModule_ShowWindow "::ODWindowModule::ShowWindow"
  162. #define ODWindowModule_ShowWindow(somSelf,ev,window,layer) \
  163.     (SOM_Resolve(somSelf, ODWindowModule, ShowWindow) \
  164.     (somSelf,ev,window,layer))
  165. #ifndef SOMGD_ShowWindow
  166.     #if (defined(_ShowWindow) || defined(__ShowWindow))
  167.         #undef _ShowWindow
  168.         #undef __ShowWindow
  169.         #define SOMGD_ShowWindow 1
  170.     #else
  171.         #define _ShowWindow ODWindowModule_ShowWindow
  172.     #endif /* _ShowWindow */
  173. #endif /* SOMGD_ShowWindow */
  174.  
  175. /*
  176.  * New Method: HideWindow
  177.  */
  178. typedef void   (SOMLINK *somTD_ODWindowModule_HideWindow)(ODWindowModule *somSelf, Environment *ev,
  179.         ODPlatformWindow window);
  180. #define somMD_ODWindowModule_HideWindow "::ODWindowModule::HideWindow"
  181. #define ODWindowModule_HideWindow(somSelf,ev,window) \
  182.     (SOM_Resolve(somSelf, ODWindowModule, HideWindow) \
  183.     (somSelf,ev,window))
  184. #ifndef SOMGD_HideWindow
  185.     #if (defined(_HideWindow) || defined(__HideWindow))
  186.         #undef _HideWindow
  187.         #undef __HideWindow
  188.         #define SOMGD_HideWindow 1
  189.     #else
  190.         #define _HideWindow ODWindowModule_HideWindow
  191.     #endif /* _HideWindow */
  192. #endif /* SOMGD_HideWindow */
  193.  
  194. /*
  195.  * New Method: SelectWindow
  196.  */
  197. typedef void   (SOMLINK *somTD_ODWindowModule_SelectWindow)(ODWindowModule *somSelf, Environment *ev,
  198.         ODPlatformWindow window);
  199. #define somMD_ODWindowModule_SelectWindow "::ODWindowModule::SelectWindow"
  200. #define ODWindowModule_SelectWindow(somSelf,ev,window) \
  201.     (SOM_Resolve(somSelf, ODWindowModule, SelectWindow) \
  202.     (somSelf,ev,window))
  203. #ifndef SOMGD_SelectWindow
  204.     #if (defined(_SelectWindow) || defined(__SelectWindow))
  205.         #undef _SelectWindow
  206.         #undef __SelectWindow
  207.         #define SOMGD_SelectWindow 1
  208.     #else
  209.         #define _SelectWindow ODWindowModule_SelectWindow
  210.     #endif /* _SelectWindow */
  211. #endif /* SOMGD_SelectWindow */
  212.  
  213. /*
  214.  * New Method: DeactivateFrontWindows
  215.  */
  216. typedef void   (SOMLINK *somTD_ODWindowModule_DeactivateFrontWindows)(ODWindowModule *somSelf, Environment *ev);
  217. #define somMD_ODWindowModule_DeactivateFrontWindows "::ODWindowModule::DeactivateFrontWindows"
  218. #define ODWindowModule_DeactivateFrontWindows(somSelf,ev) \
  219.     (SOM_Resolve(somSelf, ODWindowModule, DeactivateFrontWindows) \
  220.     (somSelf,ev))
  221. #ifndef SOMGD_DeactivateFrontWindows
  222.     #if (defined(_DeactivateFrontWindows) || defined(__DeactivateFrontWindows))
  223.         #undef _DeactivateFrontWindows
  224.         #undef __DeactivateFrontWindows
  225.         #define SOMGD_DeactivateFrontWindows 1
  226.     #else
  227.         #define _DeactivateFrontWindows ODWindowModule_DeactivateFrontWindows
  228.     #endif /* _DeactivateFrontWindows */
  229. #endif /* SOMGD_DeactivateFrontWindows */
  230.  
  231. /*
  232.  * New Method: ActivateFrontWindows
  233.  */
  234. typedef void   (SOMLINK *somTD_ODWindowModule_ActivateFrontWindows)(ODWindowModule *somSelf, Environment *ev);
  235. #define somMD_ODWindowModule_ActivateFrontWindows "::ODWindowModule::ActivateFrontWindows"
  236. #define ODWindowModule_ActivateFrontWindows(somSelf,ev) \
  237.     (SOM_Resolve(somSelf, ODWindowModule, ActivateFrontWindows) \
  238.     (somSelf,ev))
  239. #ifndef SOMGD_ActivateFrontWindows
  240.     #if (defined(_ActivateFrontWindows) || defined(__ActivateFrontWindows))
  241.         #undef _ActivateFrontWindows
  242.         #undef __ActivateFrontWindows
  243.         #define SOMGD_ActivateFrontWindows 1
  244.     #else
  245.         #define _ActivateFrontWindows ODWindowModule_ActivateFrontWindows
  246.     #endif /* _ActivateFrontWindows */
  247. #endif /* SOMGD_ActivateFrontWindows */
  248. #ifndef SOM_DONT_USE_INHERITED_MACROS
  249. #define ODWindowModule_InitRefCntObject ODRefCntObject_InitRefCntObject
  250. #define ODWindowModule_Acquire ODRefCntObject_Acquire
  251. #define ODWindowModule_Release ODRefCntObject_Release
  252. #define ODWindowModule_GetRefCount ODRefCntObject_GetRefCount
  253. #define ODWindowModule_somUninit SOMObject_somUninit
  254. #define ODWindowModule_InitObject ODObject_InitObject
  255. #define ODWindowModule_HasExtension ODObject_HasExtension
  256. #define ODWindowModule_AcquireExtension ODObject_AcquireExtension
  257. #define ODWindowModule_ReleaseExtension ODObject_ReleaseExtension
  258. #define ODWindowModule_Purge ODObject_Purge
  259. #define ODWindowModule_IsEqualTo ODObject_IsEqualTo
  260. #define ODWindowModule_SubClassResponsibility ODObject_SubClassResponsibility
  261. #define ODWindowModule_somUninit SOMObject_somUninit
  262. #define ODWindowModule_somUninit SOMObject_somUninit
  263. #define ODWindowModule_somDuplicateReference SOMObject_somDuplicateReference
  264. #define ODWindowModule_somCompareReference SOMObject_somCompareReference
  265. #define ODWindowModule_somRelease SOMObject_somRelease
  266. #define ODWindowModule_somFree SOMObject_somFree
  267. #define ODWindowModule_somCanDelete SOMObject_somCanDelete
  268. #define ODWindowModule_somGetClass SOMObject_somGetClass
  269. #define ODWindowModule_somGetClassName SOMObject_somGetClassName
  270. #define ODWindowModule_somGetSize SOMObject_somGetSize
  271. #define ODWindowModule_somIsA SOMObject_somIsA
  272. #define ODWindowModule_somRespondsTo SOMObject_somRespondsTo
  273. #define ODWindowModule_somIsInstanceOf SOMObject_somIsInstanceOf
  274. #define ODWindowModule_somDispatch SOMObject_somDispatch
  275. #define ODWindowModule_somClassDispatch SOMObject_somClassDispatch
  276. #define ODWindowModule_somCastObj SOMObject_somCastObj
  277. #define ODWindowModule_somResetObj SOMObject_somResetObj
  278. #define ODWindowModule_somPrintSelf SOMObject_somPrintSelf
  279. #define ODWindowModule_somDumpSelf SOMObject_somDumpSelf
  280. #define ODWindowModule_somDumpSelfInt SOMObject_somDumpSelfInt
  281. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  282.  
  283. #endif       /* SOM_ODWindowModule_h */
  284.